package com.rh.mybatisstudy.model;

public class Person {
	private int id;
	private String name;
	private int age;
	private int personId;
	private String userName;
	private String password;

	public Person() {
		super();
	}

	public Person(String name, int age, int personId, String userName, String password) {
		this.name = name;
		this.age = age;
		this.personId = personId;
		this.userName = userName;
		this.password = password;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public int getPersonId() {
		return personId;
	}

	public void setPersonId(int personId) {
		this.personId = personId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return "Person [id=" + id + ", name=" + name + ", age=" + age + ", personId=" + personId + ", userName="
				+ userName + ", password=" + password + "]";
	}

}
